]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Handle null return value
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 13 Aug 2021 00:52:09 +0000 (02:52 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 13 Aug 2021 13:16:54 +0000 (15:16 +0200)
We are not going to process key events while updating views,
but coverity complains (CID 351269)...

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>

js/ui/workspacesView.js

index 1d03e31319650e2e3925c10d4498bb965c82f027..3761881d01038155b40bf79b070ea88b409e4785 100644 (file)
@@ -1019,7 +1019,7 @@ class WorkspacesDisplay extends St.Widget {
     }
 
     vfunc_navigate_focus(from, direction) {
-        return this._getPrimaryView().navigate_focus(from, direction, false);
+        return this._getPrimaryView()?.navigate_focus(from, direction, false);
     }
 
     setPrimaryWorkspaceVisible(visible) {